import { createApp }    from "vue"
import App              from "./App.vue"
import { createPinia }  from "pinia"
import ElementPlus      from "element-plus"
import router           from "./router"
import "element-plus/theme-chalk/display.css"
import "element-plus/dist/index.css"
import "normalize.css"
import "./assets/style/common.scss"
import "./assets/style/flex.scss"
import "./theme/modules/chinese/index.scss"
import { useUserStore } from "@/store/user.js"

const app = createApp(App)
app.use(createPinia())

// 恢复用户数据 如果有其他恢复行为,自行处置
let userStore = useUserStore()
userStore.recoverToken()

app.use(ElementPlus)
app.use(router)
app.mount("#app")
